import "data.dart";

class CategoryEntity {
  List<Data> data;
  int status;
  int resultCode;
  String resultMsg;
  String resultData;


  CategoryEntity({this.data, this.status,this.resultCode,this.resultMsg,this.resultData});

  CategoryEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<Data>();
      json['data'].forEach((v) { data.add(new Data.fromJson(v)); });
    }

    resultMsg = json['resultMsg'];
    resultCode = json['resultCode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data!= null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}
